/*
 * @(#)CMPPActiveTestResp.java 1.0 2013-6-26
 *
 * Copyright (c) 2009 Sunyard System Engineering Co., Ltd. All rights reserved.
 *
 * This software is the confidential and proprietary information of Sunyard
 * System Engineering Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with Sunyard.
 */
/*
 * Modification History: Date Author Version Description
 * ------------------------------------------------------------------
 *
 */

package vsmg.cmpp.entity;

import org.apache.mina.core.buffer.IoBuffer;

import vsmg.cmpp.CMPPKey;

/**
 *
 *
 * @version 1.0 2013-6-26
 * @author xinx.wang@sunyard.com
 */
public class CMPPActiveTestResp extends CMPPMsgHeader {

	private byte reserved;

	public CMPPActiveTestResp() {
		super();
	}

	public CMPPActiveTestResp(CMPPMsgHeader head, IoBuffer in) {
		super.setTotalLength(13);
		this.setSequenceID(head.getSequenceID());
		this.setCommandId(CMPPKey.COMMAND_ACTIVE_TEST_RESP);
		if (in != null) {
			this.setReserved(in.get());
		}
	}

	/**
	 * @return the reserved
	 */
	public byte getReserved() {
		return this.reserved;
	}

	/**
	 * @param reserved
	 *            the reserved to set
	 */
	public void setReserved(byte reserved) {
		this.reserved = reserved;
	}

	/*
	 * (non-Javadoc)
	 *
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "CMPPActiveTestResp [" + super.toString() + ", reserved=" + this.reserved + "]";
	}

}
